<?php
class ZAuthorItem {
    /**
     * @var String
     */
    private $authorName;
    /**
     * @var String
     */
    private $source;
    /**
     * @var Int
     */
    private $numberOfPosts;

    /**
     * @var Int
     */
    private $authorUrl;

    /**
     * @param $authorName String
     * @param $source String
     * @param $numberOfPosts Int
     * @param $authorUrl Int
     */
    public function __construct($authorName, $source, $authorUrl, $numberOfPosts){
        $this->authorName       = $authorName;
        $this->source           = $source;
        $this->numberOfPosts    = $numberOfPosts;
        $this->authorUrl        = $authorUrl;
    }

    /**
     * @return String Author Name
     */
    public function getAuthorName(){
        return $this->authorName;
    }

    /**
     * @return String Source of author
     */
    public function getSource(){
        return $this->source;
    }

    /**
     * @return Int Number of Posts
     */
    public function getNumberOfPosts(){
        return $this->numberOfPosts;
    }

    /**
     * @return Int Author url
     */
    public function getAuthorUrl() {
        return $this->authorUrl;
    }
}